class HuMen:

    def __init__(self, name, age):
        print('humen init 2')
        self.name = name
        self.age = age

    def show(self):
        print('name:%s,age:%s' % (self.name, self.age))




class Student(HuMen):
    classroom = '101'
    address = 'beijing'
    name = ''
    age = 1


    def __init__(self, name, age):
        super().__init__(name, age)  # 调用父类的构造方法
        print('student init 2')
        self.name = name
        self.age = age

    def print_age(self):
        print('%s: %s' % (self.name, self.age))


# 主函数
if __name__ == "__main__":
    stu = Student('yejing', 35)
    stu.show()


    hm2 = HuMen('yejing', 22)
    hm2.show()